package org.dr.springmvcdemo.connect.controller;


import org.springframework.web.bind.annotation.*;

@RestController
public class UserController {
    // 路由器规则注册
    @RequestMapping("/sayrequest")
    public String sayRequesti(){
        return "hello,Spring MVC！ this is a request";
    }
    @PostMapping("/saypost")
    //@RequestMapping(value = "/sayget",method = RequestMethod.POST)
    public String saypost(){
        return "hello,Spring MVC！ this is a post";
    }

    @GetMapping("/sayget")
    //@RequestMapping(value = "/sayget",method = RequestMethod.GET)
    public String sayge(){
        return "hello,Spring MVC！ this is a get";
    }

}